class A
	{
	int a=10;
	private void showA()
		{
		System.out.println(a);
		}
	void Ashow()
		{
		showA();
		}
	}
	
class B extends A
	{
	int b = 20;
	void showB()
		{
		System.out.println(b);
		showA();
		}
	void showA()
		{
		a=30;
		System.out.println(a);
		}
	}

class AccessPrivate
	{
	public static void main(String args[])
		{
		B b = new B();
		b.showB();
		b.showA();
		A a = new A();
		a.Ashow();
		}
	}